//
// Created by 123 on 2024/12/31.
//
#include "iostream"
using namespace std;

class Person{
private:
    string m_name;
    int m_age;
    string m_lover;
public:
    void setName(string name){
        m_name = name;
    }
    string getName(){
        return m_name;
    }
    int getAge(){
        return m_age;
    }
    void setAge(int age){
        if(age < 0 || age > 150){
            cout << "monster" << endl;
            return ;
        }
        m_age = age;
    }
    void setLover(string lover){
        m_lover = lover;
    }
};


int main056(){
    Person  p;
    p.setName("zhangsan");
    p.setAge(180);
    p.setLover("myself");
    cout << p.getName() << endl;
    cout << p.getAge() << endl;

    return 0;
}